﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

using WorkStation.Frameworks.Core.Data.DataTableValidate.Rules;

namespace WorkStation.Frameworks.Core.Data.DataTableValidate
{
    /// <summary>
    /// * Excel -> DataTable 数据验证接口
    /// </summary>
    public interface IValidateSpecification
    {
        /// <summary>
        /// * 验证规则集合
        /// </summary>
        List<IRule> Rules { get; set; }

        /// <summary>
        /// * 验证方法
        /// </summary>
        /// <param name="table">数据表</param>
        /// <returns>验证结果对象</returns>
        List<ValidateResult> Validate(DataTable table);
    }
}
